package com.itheima.pojo.vo;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class BorrowRecordVo {
    private Integer id; //主键ID
    private String cardNumber; // 添加此字段
    private Integer bookId;
    private Integer operatorId;
    private Integer userId;
    private Integer status;
    private LocalDateTime borrowTime;
    private LocalDateTime returnTime;
    private LocalDateTime expectedReturnTime;

    // 修改以下字段名与SQL别名匹配
    private String name; // 图书名(与SQL中的b.name对应)
    private String username; // 借阅人姓名(与SQL中的u1.username别名对应)
    private String operatorName; // 操作人姓名
}